<include file="User/Home/View/default/header.html" />
<!--头部-->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/v.1.8.1195/easyui/themes/sunny/easyui.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/icon.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/common.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/mmm_extra.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/adddepozit.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/desktop.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/chats.css" />
<link rel="stylesheet" type="text/css" href="/Public/Home/style/member/css/menu.css" />
<div id="work_area" region="center">
	<div class="zik_model_jobs">
		<div class="jobsActiveForm">
			<div class="title">
				<div>
					<div style="float:right; text-align: right;">
						<p>
						<a href="#" class="easyui-linkbutton l-btn" iconcls="icon-mmb-all" onclick="showArchive();">任务存档</a>
						</p>
					</div>
					<div style="overflow: hidden;">
						<h1>
							<a href="/gp3mu/mmm_extra.html">网络任务 | mmmplus</a>
						</h1>
					</div>
				</div>
			</div>
			<div class="content">
			<div class="job_in_processing">
					<p style="text-align: right; color: green; font-weight: bold; font-size: 16px;"><span class="percent_by_job">1 美元奖励</span></p>
					<div class="info_job">
						<div>
							<p style="font-size: 20px;"><b>#1423: Follow the Community news and share it on your Facebook page Online</b></p>
						</div>
						<div>
							<p><em>ONLINE &gt; Blog</em></p>
						</div>
						<div>
							<p><b>#MMMCommunity #‎Mavro #Sergey_Mavrodi</b></p>
						</div>
						<div class="full_description">
							<p><span style="font-size:16px;"><strong>Step 1.</strong> Follow the link&nbsp;
								<a href="https://www.facebook.com" target="_blank">https://www.facebook.com </a>&nbsp;and login your account.</span></p>
							<p><span style="font-size:16px;"><strong>Step 2.</strong>Click on the below link to access our post<br/><a href="https://www.facebook.com/MMMPlus2017/posts/948816541925252" target="_blank">https://www.facebook.com/MMMPlus2017/posts/948816541925252</a></span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_2.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_2.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 3.</strong>Scroll down the page and click on Share button.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_3.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_3.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 4.</strong>Click on Share from the pull down menu.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_4.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_4.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 5.</strong>Write some thanking comments in the blank, do remember to insert your referral link and our official website <a href="https://mmmplus.cc" target="_blank">https://mmmplus.cc</a> please be informed again that both official website and your referral link must be included in the task.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_5.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_5.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 6.</strong>Click on the button to Tag people in your post</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_6.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_6.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 7.</strong>Tag at least 10 of your friends in your post.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_7.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_7.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 8.</strong>Choose Public then click on Post button to share your post.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_8.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_8.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 9.</strong>click on your nickname.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_9.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_9.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 10.</strong>Click on the time that your post is shared.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_10.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_10.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 11.</strong>Copy the link from your browser.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_11.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_11.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>
							<p><span style="font-size:16px;"><strong>Step 12.</strong>Paste the link to the right blank then click on Send for Approval.</span></p>
							<p><span><span style="font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"><img src="https://mmmplus.cc/style/home/img/task4/20170901539834_12.jpg" onclick="window.open('https://mmmplus.cc/style/home/img/task4/20170901539834_12.jpg')" style="border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad);cursor:pointer;" width="602px;"></span></span></p>

						</div>
					</div>
					<div class="confirm_form">
						<div>
							<p style="margin-top: 25px;">在此输入链接地址</p>
						</div>
						<div class="links">
							<p>
								<input class="link" style="width: 800px;" type="text" placeholder="">
							</p>
						</div>
					</div>
					<p style="text-align: right; color: green; font-weight: bold; font-size: 16px;"><span class="percent_by_job"></span></p>
					<div style="display: table; width: 100%;height:54px;">
						<div style="display: table-cell; text-align: center;"><span id="zik_model_files" name="zik_model_files" style="margin: 4px;">
							<div class="qq-uploader">
								<div class="qq-upload-drop-area" style="display: none;"><span>Drop files here to upload</span></div>
								<div class="qq-upload-button" style="display: none;position: relative; overflow: hidden; direction: ltr; width: 300px;"><span></span>
							</div>
							<ul class="qq-upload-list">
							</ul>
							</div>
							</span></div>
						<div style="display: table-cell; text-align: right; vertical-align: top;">
							<input type="hidden" id="task_id" value="1892"/>
							<p>
								<a class="easyui-linkbutton l-btn send_link" iconcls="icon-ok">发送节制</a>
							</p>
						</div>
					</div>
				</div>
				</div>
		</div>
	</div>
</div>

</body>
</html>
<script type="text/javascript">
$('.send_link').click(function(){
	var l = $('.link').val();
	if(l.length==0){
		showAlert(getTranslation('Enter_the_link'));
		return;
	}
	 loadingShow();
		$.ajax({
			url:baselocation+"/mmm_extra/validateLink/",
			type: 'POST',
			data :{l:l},
			dataType: 'json',
			success:function(result){
				if(result.code==2){
					loadingHide();
					showAlert(getTranslation('Duplicated Link'));
					return false;
				}else if(result.code==1){
					loadingHide();
					showAlert(getTranslation('Invalid Link'));
					return false;
				}else if(result.code==0){
					$.ajax({
						url:baselocation+"/mmm_extra/sendLink/",
						type: 'POST',
						data :{id:$('#task_id').val(),l:l},
						dataType: 'json',
						success:function(result){
							location.reload();
							loadingHide();
						}
					});
				}
			}
		});
})
function showArchive(){
	 var s = $('input[name=status]').val();
	 if(!s){
		 s = 3;
	 }
	 var template = '<div class="jobsActiveForm">' + '<div>' + '<div style="float:right; text-align: right;">' + '<p>' + '<a href="#" class="easyui-linkbutton l-btn" iconCls="icon-mmb-all" onclick="ZM.jobsArchiveForm.show();"><span class="l-btn-left"><span class="l-btn-text icon-mmb-all" style="padding-left: 20px;">' + getTranslation('mmm_extra_archive') + '</span></span></a> ' + '</p>' + '</div>' + '<div style="overflow: hidden;">' + '<h1><a href="#" onclick="ZM.selectorJobsListForm.show(); return false;">' + getTranslation('mmm_extra_title') + '</a></h1>' + '</div>' + '</div>' + '<div>' + '<p style="margin-top: 30px;"><h2>' + '</h2></p>' + '<h2>' + '</h2>' + '<div style="padding: 0 9px; border: solid 1px #d19405; border-radius: 10px; background: rgba(255, 255, 255, 0.3)">' + '<div style="margin: 14px 0;">' + '<div style="margin: 0; padding: 0; display: inline-block; width: 735px; text-align: left;"><em>' + getTranslation('mmm_extra_select_type_of_jobs') + '</em></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: right;">' + '<input type="text" style="display: none;" name="type" value="0"/>' + '<div onclick="ZM.jobsArchiveForm.switchType(this);" class="switcher_type_job_active_online"></div>' + '</div>' + '</div>' + '<div style="margin: 14px 0;">' + '<input type="text" style="display: none;" name="status" value="3"/>' + '<div class="status_group" style="margin: 0; padding: 0; width: 980px;">' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(0); return false;" class="stat_processing" >' + getTranslation('mmm_extra_stat_processing') + ' <span class="count_stat_processing">(...)</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(1); return false;" class="stat_completed">' + getTranslation('mmm_extra_stat_completed') + ' <span class="count_stat_completed">(...)</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(2); return false;" class="stat_rejected">' + getTranslation('mmm_extra_stat_rejected') + ' <span class="count_stat_rejected">(...)</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(3); return false;" class="stat_all_active">' + getTranslation('mmm_extra_stat_all') + ' <span class="count_stat_all">(...)</span></span></div>' + '</table>' + '</div>' + '<div style="margin: 14px 0;" class="archive"></div>' + '<div style="margin: 14px 0;" class="archive_pagination"></div>' + '</div>' + '</div>' + '</div>';
	 $('.zik_model_jobs').html(template);
     loadingShow();
     var html = '';
	 $.ajax({
			url:baselocation+"/mmm_extra/archives",
			type: 'get',
			data :{status:s},
			dataType: 'json',
			success:function(results){
				loadingHide();
				$('.count_stat_processing').html('(' + results['get_archive_statistics'].res0 + ')');
                $('.count_stat_completed').html('(' + results['get_archive_statistics'].res1 + ')');
                $('.count_stat_rejected').html('(' + results['get_archive_statistics'].res2 + ')');
                $('.count_stat_all').html('(' + results['get_archive_statistics'].res3 + ')');
				for (var i in results['get_archive']) {
					var actionHtml = '';
					if (results['get_archive'][i].status - 0 == 0) actionHtml =getTranslation('mmm_extra_stat_processing');
					if (results['get_archive'][i].status - 0 == 1) actionHtml =getTranslation('mmm_extra_stat_completed');
					if (results['get_archive'][i].status - 0 == 2) actionHtml =getTranslation('mmm_extra_stat_rejected');
					var r = "";
					if(results['get_archive'][i]['r']!=null){
						r = results['get_archive'][i]['r'];
					}
					html += '<div class="item" >' + '<p><b>' + results['get_archive'][i]['t'] + '</b></p>' + '<p><em>ONLINE > SNS</em></p>' + '<p><b>' + getTranslation('mmm_extra_hashtags') + ': #MMMPLUS' + '</b></p>'+ '<p><b>'+r+'</b></p><p style="text-align: right;">' + actionHtml + '</p>' + '</div>';
			     }
				$('.archive').html(html);
			}
		});
}
function switchStatus(status){
	 status = status - 0;
	 $('input[name=status]').val(status);
     showArchive();
     $('.status_group').html('<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(0); return false;" class="stat_processing' + (status == 0 ? '_active': '') + '" >' + getTranslation('mmm_extra_stat_processing') + ' <span class="count_stat_processing">' + $('.count_stat_processing').html() + '</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(1); return false;" class="stat_completed' + (status == 1 ? '_active': '') + '">' + getTranslation('mmm_extra_stat_completed') + ' <span class="count_stat_completed">' + $('.count_stat_completed').html() + '</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(2); return false;" class="stat_rejected' + (status == 2 ? '_active': '') + '">' + getTranslation('mmm_extra_stat_rejected') + ' <span class="count_stat_rejected">' + $('.count_stat_rejected').html() + '</span></span></div>' + '<div style="margin: 0; padding: 0; display: inline-block; width: 245px; text-align: center;"><span onclick="switchStatus(3); return false;" class="stat_all' + (status == 3 ? '_active': '') + '">' + getTranslation('mmm_extra_stat_all') + ' <span class="count_stat_all">' + $('.count_stat_all').html() + '</span></span></div>');
}
function validateLink(l){
	 loadingShow();
	$.ajax({
		url:baselocation+"/mmm_extra/validateLink/",
		type: 'POST',
		data :{l:l},
		dataType: 'json',
		success:function(result){
			if(result.code==2){
				showAlert(getTranslation('Duplicated Link'));
				return false;
			}else if(result.code==1){
				showAlert(getTranslation('Invalid Link'));
				return false;
			}else if(result.code==0){
				return true;
			}
		}
	});
	 loadingHide();
}
</script>
